/**
 * StringSeparator ist eine abstrakte Klasse fuer die Trennung von Textteilen
 * entsprechend dem Schema "Leerzeile + Textzeile*lineCount + Leerzeile"
 * 
 * 
 * @author Konrad Paumann
 * @author Maximilian Csuk
 * @author Bernhard Denner
 * 
 */
public abstract class StringSeparator implements Separator {
	
	// lineCount >= 0
	// sets a lineCount (how often to repeat a line)
	public abstract void setLineCount(int lineCount);
	
	// returns lineCount >= 0
	public abstract int getLineCount();
	
	// returns text
	public abstract String getText();
	
	// writes lineCount lines with text between 
	// two empty lines
	// separates previous from following output
	public void print() {
		System.out.println();
		for (int i = 0; i < getLineCount(); i++) {
			System.out.println(getText());
		}
		System.out.println();
	}

}
